﻿@using AnhDuyShop.Models
@model AnhDuyShop.Models.Member

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutPage_Admin.cshtml";
}

@{
    InfoMember infoMember = ViewBag.InfoMember;
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

<div class="row">
    <div class="col-sm-12">
        <!-- start: TEXT FIELDS PANEL -->
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-external-link-square"></i>
                Text Fields
                <div class="panel-tools">
                    <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
                    </a>
                    <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                        <i class="fa fa-wrench"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-refresh" href="#">
                        <i class="fa fa-refresh"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-expand" href="#">
                        <i class="fa fa-resize-full"></i>
                    </a>
                    <a class="btn btn-xs btn-link panel-close" href="#">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="panel-body">
                <table class="table-responsive">
                    <tr class="btn-lg">
                        <td class="col-sm-3">Email </td>
                        <td class="col-sm-10">@Html.ActionLink(Model.UserEmail, "Details", new { id = Model.UserID ,@class = "form-control"})</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Password </td>
                        <td class="col-sm-10">@Html.PasswordFor(model => model.Password, new { value = string.Empty, @class = "form-control" })</td>
                    </tr>

                    <tr class="btn-lg">
                        <td class="col-sm-3">Privilege </td>
                        <td class="col-sm-10">@Html.DropDownList("ListPrivilege","Select Privilege ...")</td>
                    </tr>

                    <tr class="btn-lg">
                        <td class="col-sm-3">Active </td>
                        <td class="col-sm-10">@Html.EditorFor(model => model.Active) </td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Fax : </td>
                        <td class="col-sm-10">@Html.TextBox("tbFax", infoMember.Fax, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Number Phone : </td>
                        <td class="col-sm-10">@Html.TextBox("tbNumberPhone", infoMember.NumberPhone, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Number Card Member : </td>
                        <td class="col-sm-10">@Html.TextBox("tbNumberCardMember", infoMember.NumberCardMember, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Company : </td>
                        <td class="col-sm-10">@Html.TextBox("tbCompany", infoMember.Company, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Representative : </td>
                        <td class="col-sm-10">@Html.TextBox("tbRepresentative", infoMember.Representative, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Address Company : </td>
                        <td class="col-sm-10">@Html.TextBox("tbAddressCompany", infoMember.Company, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">Tax Code : </td>
                        <td class="col-sm-10">@Html.TextBox("tbTaxCode", infoMember.TaxCode, new { @class = "form-control" })</td>
                    </tr>
                    <tr class="btn-lg">
                        <td class="col-sm-3">
                            <button data-style="expand-right" class="btn btn-teal ladda-button">
                                <span class="ladda-label"> Update </span>
                                <i class="fa fa-arrow-circle-right"></i>
                                <span class="ladda-spinner"></span>
                                <span class="ladda-spinner"></span>
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <!-- end: TEXT FIELDS PANEL -->
    </div>
</div>
}

<div>
    @Html.ActionLink("Back to List", "Index",null,new { @class = "label label-sm label-danger"})
</div>